//
// Created by china on 25-1-7.
//

#ifndef CHAT_OFFLINEMESSAGEMODEL_H
#define CHAT_OFFLINEMESSAGEMODEL_H

#include <string>
#include <vector>
#include "db.h"
#include "DataBase.hpp"
#include "Pool.h"

class OfflineMessageModel {
public:
    //存储用户的离线消息
    bool insert(const struct MySQLTable::OfflineMessage& offlinemessage);
    //删除用户的离线消息
    bool remove(const struct MySQLTable::User&  user);
    //查询用户的离线消息
    std::vector<std::string> query(const struct MySQLTable::User&  user);
};


#endif //CHAT_OFFLINEMESSAGEMODEL_H
